﻿using DeepEarth.Map.Core;
using System.ComponentModel.Composition;
using DeepEarth.Map.Core.Tiling;

namespace DeepEarth.Map.TileSources
{
    [Export(typeof(BaseTileSourceProvider))]
    public class XYZTileSourceProvider : BaseTileSourceProvider<XYZTileSourceFactory>
    {
        public XYZTileSourceProvider()
			: base(XYZTileSourceFactory.XYZ)
        {
            TileSourcesCollection.Add(TileSourceFactory.CreateTileSource(Mode));
        }

        public override BaseTileSourceProvider Clone()
		{
			var result = new XYZTileSourceProvider();
			FillClone(result);
			return result;
		}
	}
}
